package com.proxy.cglib;

import net.sf.cglib.reflect.FastClass;
import net.sf.cglib.reflect.FastMethod;

public class FastClassDemo {

	public static void main(String[] args) throws Exception {
		FastClass fastClass = FastClass.create(SampleBean.class);
	    FastMethod fastMethod = fastClass.getMethod("getValue",new Class[0]);
	    SampleBean bean = new SampleBean();
	    bean.setValue("Hello world");
	    System.out.println(fastMethod.invoke(bean, new Object[0]));
	}

}
